package cn.qingyun.gis.modules.youshang.entity.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "导出友商门头照片对象")
public class ExportYsPhotoDto {

    /**
     * 业务地市
     */
    @ExcelProperty("poi-id")
    @ApiModelProperty(value = "poi-id")
    private String poiId;
    /**
     * 业务地市
     */
    @ExcelProperty("业务地市")
    @ApiModelProperty(value = "业务地市")
    private String regionCity;

    /**
     * 业务区县
     */
    @ExcelProperty("业务区县")
    @ApiModelProperty(value = "业务区县")
    private String regionDistricts;

    /**
     * 网格名称
     */
    @ExcelProperty("网格名称")
    @ApiModelProperty(value = "网格名称")
    private String gridName;

    /**
     * 渠道名称
     */
    @ExcelProperty("渠道名称")
    @ApiModelProperty(value = "渠道名称")
    private String ysChannelName;

    /**
     * 渠道地址(归属省份+地市+县区+详细地址)
     */
    @ExcelProperty("渠道地址")
    @ApiModelProperty(value = "渠道地址")
    private String ysChannelAddress;

    /**
     * 渠道类型
     */
    @ExcelProperty("运营商类型")
    @ApiModelProperty(value = "运营商类型")
    private String categoryNames;

    /**
     * 0：正常经营| 1：关门营业
     */
    @ExcelProperty("经营现状")
    @ApiModelProperty(value = "0：正常经营| 1：关门营业")
    private String operateState;

    /**
     * 摸排人工号
     */
    @ExcelProperty("摸排人工号")
    @ApiModelProperty(value = "摸排人工号")
    private String kwPhone;


    @ExcelProperty(value = "渠道门头照片")
    @ApiModelProperty(value = "渠道门头照片")
    private String channelPicture;

    public String getOperateState() {
        if ("0".equals(operateState)) {
            return "正常经营";
        }
        if ("1".equals(operateState)) {
            return "关门营业";
        }
        return operateState;
    }

    public void setOperateState(String operateState) {
        this.operateState = operateState;
    }


}
